<template>
  <div class="full-screen">
    <router-view></router-view>
  </div>
</template>

<script setup>
// 无需逻辑代码
</script>

<style scoped>
.full-screen {
  position: absolute; /* 绝对定位，脱离文档流 */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* 四边紧贴视口 */
}

.router-view {
  width: 100%;
  height: 100%;
}
</style>